//logs.js
const util = require("../../utils/util.js");
const app = getApp();
Page({
  data: {
    logs: [],
    xs: [1, 2, 3, 4, 5, 6, 7, 8, 9],
  },
  onLoad: function () {
    this.setData({
      logs: (wx.getStorageSync("logs") || []).map((log) => {
        return util.formatTime(new Date(log));
      }),
    });
  },
});
